#ifndef FRSKYTX_H
#define FRSKYTX_H


class frskyTx {
    public:
        frskyTx ();
        virtual ~frskyTx ();

        float getLipoVoltSum ();
        void initFrames ();
        void setAccX (float);
        void setAccY (float);
        void setAccZ (float);
        void setAltitude (float);
        void setAmpAmp (int);
        void setAmpVolt (float);
        void setDayMonthYear (unsigned int, unsigned int, unsigned int);
        void setGpsAltitude (float);
        void setGpsSpeedKmh (float);
        void setFuel (unsigned int);
        void setHourMinSec (unsigned int, unsigned int, unsigned int);
        void setLipo (int, float);
        void setRpm (unsigned int);
        void setTemp1 (signed);
        void setTemp2 (signed);
        void sendFrame1 (int);
        void sendFrame2 (int);
        void sendFrame3 (int);

    protected:
    private:
        static unsigned char frame1[49];
        static unsigned char frame2[53];
        static unsigned char frame3[17];

        int lipoCells;
        float lipoVolt[12];
};

#endif // FRSKYTX_H
